﻿using System;
using System.IO;
using System.Windows.Forms;

namespace WinFormRapor
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            string appPath = Path.GetDirectoryName(Application.ExecutablePath);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (!File.Exists(appPath + @"\Config.ini"))
            {
                Login lg = new Login();
                lg.ShowDialog();
            }
            Application.Run(new Form1());
        }
    }
}
